package com.woniuxy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.mapper.ColumnsMapper;
import com.woniuxy.pojo.Columns;
import com.woniuxy.service.ColumnsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Xi'ao'M'ing
* @description 针对表【t_columns】的数据库操作Service实现
* @createDate 2025-06-03 11:11:26
*/
@Service
public class ColumnsServiceImpl extends ServiceImpl<ColumnsMapper, Columns>
    implements ColumnsService {
    @Autowired
    private ColumnsMapper columnsMapper;
    @Override
    public List<Columns> getAllColumns() {
        List<Columns> columns = columnsMapper.selectList(null);
        return columns;
    }

    @Override
    public Columns getColumnById(Integer id) {
        Columns column = columnsMapper.selectById(id);
        return column;
    }
}




